﻿<%@ Assembly Name="Chaks.SharePoint.Docs.ILP, Version=1.1.0.0, Culture=neutral, PublicKeyToken=5e4a77ec46c0cc45" %>
<%@ Page Language="C#" Inherits="Chaks.SharePoint.Docs.ILP.ILPSettings" MasterPageFile="~/_layouts/application.master" %> 
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:FormattedStringWithListType runat="server"
		String="<%$Resources:wss,listgeneralsettings_pagetitle%>" LowerCase="false" />
</asp:Content>

<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:FormattedStringWithListType runat="server"
		String="<%$Resources:wss,listgeneralsettings_titleintitlearea%>" LowerCase="false" />
	<a id="lnkListName" runat="server" />
</asp:Content>

<asp:Content ID="Content3" contentplaceholderid="PlaceHolderPageDescription" runat="server">
</asp:Content>

<asp:Content ID="Content4" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">        
        <%--Require ILP--%>
        <wssuc:InputFormSection runat="server" Title="Item-level Permission">
	        <Template_Description>
		        <SharePoint:EncodedLiteral runat="server" text="Specify whether new items added to this document library should have unique permissions" EncodeMethod='HtmlEncode'/>		
	        </Template_Description>
           <Template_InputFormControls>
                <wssuc:InputFormControl LabelText="Require new items to have unique permission?" runat="server">
			        <Template_Control>
			            <table class="ms-authoringcontrols" width="100%">
						<tr>
							<td nowrap width="50%">
								<asp:RadioButton id="ILPEnableYes"
									GroupName="RequireILP"								    
									Text="<%$Resources:wss,multipages_yes%>"
									runat="server"/>
							</td>
							<td nowrap>
								<asp:RadioButton id="ILPEnableNo"								    
									GroupName="RequireILP"
									Text="<%$Resources:wss,multipages_no%>"									
									runat="server"/>
							</td>
						</tr>
					</table>
			        </Template_Control>
		        </wssuc:InputFormControl>
           </Template_InputFormControls>
        </wssuc:InputFormSection>
        <%--People Picker--%>
        <wssuc:InputFormSection runat="server" Title="Default Permission Levels">
	        <Template_Description>
		        <SharePoint:EncodedLiteral runat="server" text="Specify the default permissions when new items are added" EncodeMethod='HtmlEncode'/>		
	        </Template_Description>
           <Template_InputFormControls>
                <wssuc:InputFormControl LabelText="Default permission level" runat="server">
			        <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlPermissionSets" />			                  				
			        </Template_Control>
			    </wssuc:InputFormControl>	
                <wssuc:InputFormControl LabelText="Default groups" runat="server">                
			        <Template_Control>			            							    
				       <SharePoint:PeopleEditor runat="server" ID="pplEditor" 
                                    AutoPostBack="true" 
                                    AllowEmpty="false" 
                                    SelectionSet="SPGroup" 
                                    Width="400px"
                                    MultiSelect="true"
                                    PlaceButtonsUnderEntityEditor="false" 
                                    Rows="1" />     					                                     
			        </Template_Control>
		        </wssuc:InputFormControl>	            
           </Template_InputFormControls>        
        </wssuc:InputFormSection>    
        <wssuc:InputFormSection runat="server" Title="Permissions to existing items">
	        <Template_Description>
		        <SharePoint:EncodedLiteral runat="server">
		            Specify whether to apply the new permissions and inherit parent permissions to the current items in this list.
		        </SharePoint:EncodedLiteral>
	        </Template_Description>
	        <Template_InputFormControls>
                <wssuc:InputFormControl LabelText="Apply the new permissions to all existing items?" runat="server">
			        <Template_Control>
                        <table class="ms-authoringcontrols" width="100%">
						<tr>
							<td nowrap width="50%">
								<asp:RadioButton id="ApplyToAllYes"
									GroupName="RequireILP"
									Text="<%$Resources:wss,multipages_yes%>"
									runat="server"/>
							</td>
							<td nowrap>
								<asp:RadioButton id="ApplyToAllNo"
									GroupName="RequireILP"
								    Checked="true"
									Text="<%$Resources:wss,multipages_no%>"									
									runat="server"/>
							</td>
						</tr>
					</table>		                  				
			        </Template_Control>
			    </wssuc:InputFormControl>	
			</Template_InputFormControls>
	    </wssuc:InputFormSection>
        <%-- Save and Cancel Button --%>
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
			<Template_Buttons>
				<asp:PlaceHolder runat="server">				
						<asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="BtnSave_Click" Text="<%$Resources:wss,multipages_okbutton_text%>" id="BtnSave" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
				</asp:PlaceHolder>					
				<asp:PlaceHolder runat="server">					
						<asp:Button runat="server" class="ms-ButtonHeightWidth" Text="<%$Resources:wss,multipages_cancelbutton_text%>" id="BtnCancel" CausesValidation="false"/>
				</asp:PlaceHolder>				
			</Template_Buttons>
		</wssuc:ButtonSection>
    </table>
</asp:Content>
